package chapter03;

public class example06 {
    static class Student{
        private  String name;
        private  int age;
        public Student(String n,int a){
            name = n;
            age = a;
        }
        public  void  read(){
            System.out.println("我是："+name+",年龄："+age);
        }
    }
    public static class Example06 {
        public static void main(String[] args) {
            Student stu = new Student("张三",18);//实例化Student对象
            stu.read();
        }
    }
}
